package com.yu.boot2;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @author zhangyu
 */
@SpringBootApplication
public class YuBoot2Application {

    public static void main(String[] args) {
        SpringApplication.run(YuBoot2Application.class, args);
    }

    @RequestMapping("/")
    public String greeting(ModelMap map) {
        return "index";
    }
}
